Class MobWrapper

java.lang.Object
jeresources.jei.mob.MobWrapper
All Implemented Interfaces:
mezz.jei.api.gui.ingredient.IRecipeSlotTooltipCallback, mezz.jei.api.recipe.category.extensions.IRecipeCategoryExtension

public class MobWrapper extends Object implements mezz.jei.api.recipe.category.extensions.IRecipeCategoryExtension, mezz.jei.api.gui.ingredient.IRecipeSlotTooltipCallback
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    drawInfo(int recipeWidth, int recipeHeight, @NotNull com.mojang.blaze3d.vertex.PoseStack poseStack, double mouseX, double mouseY)
    Draw additional info about the recipe.
     
    List<net.minecraft.network.chat.Component>
    getToolTip(net.minecraft.world.item.ItemStack stack)
     
    @NotNull List<net.minecraft.network.chat.Component>
    getTooltipStrings(double mouseX, double mouseY)
    Get the tooltip for whatever is under the mouse.
    void
    onTooltip(@NotNull mezz.jei.api.gui.ingredient.IRecipeSlotView recipeSlotView, @NotNull List<net.minecraft.network.chat.Component> tooltip)
    Change the tooltip for an ingredient.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface mezz.jei.api.recipe.category.extensions.IRecipeCategoryExtension

    handleClick, handleInput, setIngredients
  • Constructor Details

    • MobWrapper

      public MobWrapper(MobEntry mob)
  • Method Details

    • getDrops

      public List<LootDrop> getDrops()
    • drawInfo

      public void drawInfo(int recipeWidth, int recipeHeight, @NotNull @NotNull com.mojang.blaze3d.vertex.PoseStack poseStack, double mouseX, double mouseY)
      Description copied from interface: mezz.jei.api.recipe.category.extensions.IRecipeCategoryExtension
      Draw additional info about the recipe. Use the mouse position for things like button highlights. Tooltips are handled by IRecipeCategoryExtension.getTooltipStrings(double, double)
      Specified by:
      drawInfo in interface mezz.jei.api.recipe.category.extensions.IRecipeCategoryExtension
      mouseX - the X position of the mouse, relative to the recipe.
      mouseY - the Y position of the mouse, relative to the recipe.
      See Also:
      • for a simple class for drawing things.
      • for useful functions.
    • getTooltipStrings

      @NotNull public @NotNull List<net.minecraft.network.chat.Component> getTooltipStrings(double mouseX, double mouseY)
      Description copied from interface: mezz.jei.api.recipe.category.extensions.IRecipeCategoryExtension
      Get the tooltip for whatever is under the mouse. ItemStack and fluid tooltips are already handled by JEI, this is for anything else. To add to ingredient tooltips, see IRecipeSlotBuilder.addTooltipCallback(IRecipeSlotTooltipCallback) To add tooltips for a recipe category, see IRecipeCategory.getTooltipStrings(Object, IRecipeSlotsView, double, double)
      Specified by:
      getTooltipStrings in interface mezz.jei.api.recipe.category.extensions.IRecipeCategoryExtension
      Parameters:
      mouseX - the X position of the mouse, relative to the recipe.
      mouseY - the Y position of the mouse, relative to the recipe.
      Returns:
      tooltip strings. If there is no tooltip at this position, return an empty list.
    • onTooltip

      public void onTooltip(@NotNull @NotNull mezz.jei.api.gui.ingredient.IRecipeSlotView recipeSlotView, @NotNull @NotNull List<net.minecraft.network.chat.Component> tooltip)
      Description copied from interface: mezz.jei.api.gui.ingredient.IRecipeSlotTooltipCallback
      Change the tooltip for an ingredient.
      Specified by:
      onTooltip in interface mezz.jei.api.gui.ingredient.IRecipeSlotTooltipCallback
    • getToolTip

      public List<net.minecraft.network.chat.Component> getToolTip(net.minecraft.world.item.ItemStack stack)